#Customize the Poi product to act as a Q&A product.

from Products.CMFCore.utils import getToolByName
	
def renamePoiContentTypes(context):
	portal = context.getSite()
	portal_types = getToolByName(portal, 'portal_types')
	if hasattr(portal_types, 'PoiTracker'):
		poi_tracker_fti = getattr(portal_types, 'PoiTracker')
		poi_tracker_fti.title = "Q&A section"
		poi_tracker_fti.description = "Question and Answer section."
		poi_issue_fti = getattr(portal_types, 'PoiIssue')
		poi_issue_fti.title = "Question"
		poi_issue_fti.description = "Add a question, which users can then respond to."
	        	           	

